﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BeerScanatronUI
{
    static class Extensions
    {
        public static int InvertScrollValue(this ScrollBar scrollbar)
        {
            int z = scrollbar.Value - scrollbar.Minimum;
            return scrollbar.Maximum - z;
        }

        public static bool IsValidColor(this Color c)
        {
            return !(c.A == 0 && c.R == 0 && c.G == 0 && c.B == 0);
        }
    }
}
